import requests


session = requests.Session()

print(session.cookies)


session.post("https://vip.hdbz.net/auth/ajaxlogin", data={
	"username": "15138001200",
	"userpwd": "pckzzy101"
})
# 登录之后 已经保存了用户cookie
print(session.cookies)

res = session.get("https://vip.hdbz.net/site/downloadlist?page=1&limit=10")

# 获取数据
print(res.json())

res = session.get("https://vip.hdbz.net/auth/loginout", allow_redirects=False)
print(session.cookies)
print(res)